Page({
  data: {

  },
  onShareAppMessage() {},

  onShareTimeline() {},
  onLoad(options) {

    this.makePhoneCall(options.phone_num)

  },

  copyText(e) {
    let key = e.currentTarget.dataset.key;
    wx.setClipboardData({ //设置系统剪贴板的内容
      data: key,
      success(res) {
        console.log(res, key);
        wx.getClipboardData({ // 获取系统剪贴板的内容
          success(res) {
            wx.showToast({
              title: '复制成功',
            })
          }
        })
      }
    })
  },

  // 要拨打的电话号码
  makePhoneCall(phoneNumber) {

    wx.makePhoneCall({
      phoneNumber: phoneNumber
    })
  }
});